-- GENERATED SPELL FOR [Magic-bound Ancient] --


function spell0_25707(pUnit, Event) --@Mark of Detonation,Self--
pUnit:FullCastSpellOnTarget(50506,pUnit)
pUnit:RegisterEvent('Sorts_25707', 3500, 1)
end

function Sorts_25707(pUnit, Event)
local choix_sorts_25707 = math.random(0, 0)
if choix_sorts_25707 == 0 then
pUnit:RegisterEvent('spell0_25707', 1, 1)
end
end

function mob25707_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25707', math.random(1500, 3000), 1)
end

function mob25707_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25707_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25707_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25707, 1, 'mob25707_Action')
RegisterUnitEvent(25707, 2, 'mob25707_Leave')
RegisterUnitEvent(25707, 3, 'mob25707_Kill')
RegisterUnitEvent(25707, 4, 'mob25707_Die')
